package com.api.gbhg.heyulei.api;


import com.api.gbhg.heyulei.service.AccountingStatusService;
import com.api.gbhg.heyulei.service.impl.AccountingStatusServiceImpl;


import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import java.util.Map;

/**
 * 修改报销会计审核状态API
 * @author hyl
 * @version 1.0
 * @date 2021/5/8 15:28
 */
@Path("/accountingStatus")
public class AccountingStatusApi {

    private AccountingStatusService service = new AccountingStatusServiceImpl();

    /**
     * 根据requestID修改报销会计审核状态
     * @param param
     * @return
     * @throws Exception
     */
    @POST
    @Path("/updateAccountingStatus")
    @Produces(MediaType.APPLICATION_JSON)
    public boolean updateAccountingStatus(Map<String,Object> param) throws Exception {
        boolean updateStatus = false;
        try {
            //根据requestId修改报销会计审核状态
            updateStatus = service.updateAccountingStatus(param);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return updateStatus;
    }

}
